<template>
    <div>
        <div>
            <el-button @click="toAbout"> vue 和electron  通信</el-button>
        </div>
        <div>
            <el-text class="mx-1" size="large">密码中间件</el-text>
        </div>
    

    </div>
</template>

<script>
import { defineComponent, reactive, ref, toRefs, watch ,getCurrentInstance } from 'vue'
import { useRouter, useRoute } from 'vue-router'
import initIpcRenderer from '@/buness/initIpcRender'



export default defineComponent({
    name:'middlepages',
    setup () {
        const router = useRouter()
        const { proxy: ctx } = getCurrentInstance() // 可以把ctx当成vue2中的this
       const state = reactive({
        toAbout(){
            router.push('/about')
        }
       })
        return {...toRefs(state)}
    }

})

</script>

<style lang="scss" scoped>

</style>